/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 23735
 * Date: 2022-10-03
 * Time: 17:48
 */
public class Main {
    public static void main(String[] args) {
        TopK topK=new TopK();
        int [] array={1,5,4,2,9,7,8,6,0,3};
        int [] temp=topK.getTopMinK(array,15);
        topK.display(temp);

        TopMinK topk=new TopMinK();
        int [] array2={1,5,4,2,9,7,8,6,0,3};
        int [] temp2=topk.topK(array2,55);
        for (int i = 0; i < temp2.length; i++) {
            System.out.print(temp2[i]+" ");
        }
        System.out.println();
    }
}
